package com.zslc.foreignoption.service.impl;

import com.zslc.foreignoption.dao.TweetAuthorMapper;
import com.zslc.foreignoption.entity.TweetAuthor;
import com.zslc.foreignoption.service.TweetAuthorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class TweetAuthorServiceImpl implements TweetAuthorService {
    @Resource
    private TweetAuthorMapper tweetAuthorMapper;


    @Override
    public TweetAuthor selectOneByObj(TweetAuthor author) {
        TweetAuthor author1 = tweetAuthorMapper.selectOneByObj(author);
        return author1;
    }

    @Override
    public List<TweetAuthor> list() {
        return tweetAuthorMapper.list();
    }


}
